package com.ruan.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruan.common.Result;
import com.ruan.pojo.Employee;
import com.ruan.pojo.QueryEmployeeCondition;

import java.util.List;

public interface EmployeeService extends IService<Employee> {
    Result getEmployeeInfo();

    Result getCurrentDepartEmployeeInfo(Integer departId);

    Boolean becomeFullTime(Integer id);

    Boolean dismissedEmployee(Integer id);

    List<Employee> searchEmployeeByCondition(QueryEmployeeCondition queryEmployeeCondition);

//    Boolean updateEmployee(Employee employee);

    void agreed(Integer id, Integer adminId);

    void agreedAdmin(Integer id, Integer adminId);

    void refuse(Integer id);

    void refuseAdmin(Integer id);

//    Boolean updateSelfInfo(Employee employee);

    byte[] exportToExcel() throws Exception;

}
